package alp.starcode.nudtportal.framework.mybatis.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * module_visit（模块访问量）
 * </p>
 *
 * @author xwx
 * @since 2023-08-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("module_visit")
@ApiModel(value = "ModuleVisit对象", description = "module_visit（模块访问量）")
public class ModuleVisit extends Model<ModuleVisit> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "模块流水号")
    @TableId("module_id")
    private String moduleId;

    @ApiModelProperty(value = "记录时间（当天零点的时间戳，单位s）")
    @TableField("record_time")
    private Long recordTime;

    @ApiModelProperty(value = "访问量")
    @TableField("visit_size")
    private Long visitSize;

    @ApiModelProperty(value = "更新时间")
    @TableField("update_time")
    private Long updateTime;


    @Override
    protected Serializable pkVal() {
        return this.moduleId;
    }

}
